package ex04;

class ImmutuableTest{
  public static void main(String arewgs[]){
     String str = "abc";
     StringBuffer buf = new StringBuffer("abc");

     str = immuMethod(str, buf);

     System.out.println(" str = " + str);
     System.out.println(" buf = " + buf.toString());
  }
  public static  String  immuMethod(String s, StringBuffer sb){
      s += 123;
      sb.append(123);

	  return s;
  }
}